// import http from "@/server/http";

// //普通任务列表
// export const apiCounselorList = (params) => {
//     return http({
//         url: "/psychological/scheduling/get_consultant_list",
//         method: "POST",
//         data: params,
//     })
// }


// // 获取预约统计次数
// export const apiCounselorCount = (params) => {
//     return http({
//         url: "/psychological/statistics/user_num",
//         method: "POST",
//         data: params,
//     })
// }


// // 线上咨询记录
// export const apiConsultRecord = (params) => {
//     return http({
//         url: "/psychological/scheduling/get_online_reservation_record_list2",
//         method: "POST",
//         data: params,
//     })
// }

// // 线下预约记录
// export const apiReserveRecord = (params) => {
//     return http({
//         url: "/psychological/scheduling/offline_appointment_record",
//         method: "POST",
//         data: params,
//     })
// }


// // 咨询师列表
// export const apiGetConsultantList = (params) => {
//     return http({
//         url: "/psychological/scheduling/get_consultant_list",
//         method: "POST",
//         data: params,
//     })
// }

// // 用户详情
// export const apiGetUserInfo = (params) => {
//     return http({
//         url: "/psychological/scheduling/user_info",
//         method: "POST",
//         data: params,
//     })
// }


// 问题类型
// export const apiGetQuestionType = (params) => {
//     return http({
//         url: "/psychological/setting/question_category_list",
//         method: "POST",
//         data: params,
//     })
// }

// 每月排班
export const apiEveryMonthSchedule = (params) => {
    return http({
        url: "/psychological/scheduling/scheduling_view",
        method: "POST",
        data: params,
    })
}
// 获取某个咨询师的每月排班
export const apiAloneEveryMonthSchedule = (params) => {
    return http({
        url: "/psychological/scheduling/month_scheduling",
        method: "POST",
        data: params,
    })
}


// 获取标签
export const apiGetAllTag = (params) => {
    return http({
        url: "/user/consultant/get_consultant_tag",
        method: "POST",
        data: params,
    })
}

// 发起咨询信息
export const apiLaunchConsultInfo = (params) => {
    return http({
        url: "/psychological/scheduling/set_consulting_info",
        method: "POST",
        data: params,
    })
}


// 获取咨询师每日排班信息

export const apiDayScheduling = (params) => {
    return http({
        url: "/psychological/scheduling/day_scheduling",
        method: "POST",
        data: params,
    })
}

// 获取预约地点
export const apiGetAddress = (params) => {
    return http({
        url: "/psychological/scheduling/get_yy_address",
        method: "POST",
        data: params,
    })
}


// 线下预约
export const apiAppointment = (params) => {
    return http({
        url: "/psychological/scheduling/appointment_expert",
        method: "POST",
        data: params,
    })
}
// 删除咨询记录
export const apiDeleteConsult = (params) => {
    return http({
        url: "/psychological/scheduling/del_online_reservation_record_id",
        method: "POST",
        data: params,
    })
}
// 咨询记录会话详情
export const apiChatDetail = (params) => {
    return http({
        url: "/psychological/scheduling/get_message",
        method: "POST",
        data: params,
    })
}

// 发送消息
export const apiSendMessage = (params) => {
    return http({
        url: "/psychological/scheduling/send_message",
        method: "POST",
        data: params,
    })
}


// 线下预约记录
export const apiOfflineAppointmentRecord = (params ) =>{
    return http({
        url: "/psychological/scheduling/offline_appointment_record",
        method: "POST",
        data: params,
    })
}

// 取消预约
export const apiCancelAppointment = (params ) =>{
    return http({
        url: "/psychological/scheduling/cancel_reservation",
        method: "POST",
        data: params,
    })
}


// 删除预约
export const apiDeleteAppointment = (params ) =>{
    return http({
        url: "/psychological/scheduling/del_reservation",
        method: "POST",
        data: params,
    })
}

// 线下预约记录详情
export const apiOfflineAppointmentRecordDetail = (params ) =>{
    return http({
        url: "/psychological/scheduling/offline_appointment_record_details",
        method: "POST",
        data: params,
    })
}

// 前置任务
export const apiGetPrepositionTask = (params ) =>{
    return http({
        url: "/psychological/scheduling/offline_appointment_record_details",
        method: "POST",
        data: params,
    })
}


